package com.ruoyi.questionnaire.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.questionnaire.domain.QuestionnaireAnswerDetail;
import com.ruoyi.questionnaire.mapper.QuestionnaireAnswerDetailMapper;
import com.ruoyi.questionnaire.service.IQuestionnaireAnswerDetailService;

@Service
public class QuestionnaireAnswerDetailServiceImpl implements IQuestionnaireAnswerDetailService {
    @Autowired
    private QuestionnaireAnswerDetailMapper answerDetailMapper;

    @Override
    public List<QuestionnaireAnswerDetail> selectAnswerDetailList(Long answerId) {
        return answerDetailMapper.selectAnswerDetailList(answerId);
    }

    @Override
    public int insertAnswerDetail(QuestionnaireAnswerDetail detail) {
        return answerDetailMapper.insertAnswerDetail(detail);
    }

    @Override
    public int insertAnswerDetailBatch(List<QuestionnaireAnswerDetail> details) {
        return answerDetailMapper.insertAnswerDetailBatch(details);
    }
} 